package com.tujia.controller;


import com.tujia.service.CityInfoService;
import com.tujia.apollo.ApolloAnnotationBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/apollo")
public class ApolloAnnotationController {
    @Autowired(required = false)
    CityInfoService cityInfoService;

    @Autowired
    ApolloAnnotationBean apolloAnnotationBean;
    
    @RequestMapping("/list")
    public String getCityList() throws Exception {
        System.out.println("默认namespace " +apolloAnnotationBean.getDefaultCityId());
        System.out.println("公共namespace " +apolloAnnotationBean.getPublicCityId());
        return "test";
    }
}
